//package gew.timers;
//
//import gew.services.TradeLoadExecutionService;
//import javax.ejb.EJB;
//import javax.ejb.Schedule;
//import javax.ejb.Singleton;
//
//@Singleton
//public class TradeLoadExecutionTimer {
//
//    private Long lastStarted = System.currentTimeMillis();
//    private final static Integer INTERVAL_MILLISECONDS = (60 * 60 / 100) * 1000;
//
//    @EJB
//    private TradeLoadExecutionService tradeLoadExecutionService;
//
//    @Schedule(second = "*/2", minute = "*", hour = "*", persistent = false)
//    public void doWork() {
//        Long t = System.currentTimeMillis();
//        if (t - lastStarted > INTERVAL_MILLISECONDS) {
//            lastStarted = t;
//            tradeLoadExecutionService.executeRequest();
//        }
//    }
//}
